Skip to content

export Function

Location ​

The user's current location will be sent when the button is pressed. Available in private chats only.

Constructor ​

ts
 ReplyButton.Location( text )
ParameterTypeDescription
textstringLabel text on the button.

Return: ReplyButtonPayload

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.